﻿namespace IService.Base
{
    public interface IBaseRedisService
    {
        bool Set<T>(string key, T value);

        bool Set<T>(string key, T value, DateTime expiresAt);

        bool Set<T>(string key, T value, TimeSpan expiresIn);

        T Get<T>(string key);

        bool Remove(string key);

        bool ContainsKey(string key);

        List<T> GetListRange<T>(string key, int start, int count);
    }
}